<!doctype html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="Linux命令," />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />






<meta name="description" content="&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;linux中df命令的功能是用来检查linux服务器的文件系统的磁盘空间占用情况。可以利用该命令来获取硬盘被占用了多少空间，目前还剩下多少空间等信息。 2.命令功能&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;显示指定磁盘文件的可用空间。如果没有文件名被">
<meta name="keywords" content="Linux命令">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux 命令- df">
<meta property="og:url" content="https://hcldirgit.github.io/2017/09/03/2. Linux 命令/35. Linux 命令- df/index.html">
<meta property="og:site_name" content="失落的乐章">
<meta property="og:description" content="&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;linux中df命令的功能是用来检查linux服务器的文件系统的磁盘空间占用情况。可以利用该命令来获取硬盘被占用了多少空间，目前还剩下多少空间等信息。 2.命令功能&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;显示指定磁盘文件的可用空间。如果没有文件名被">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2017-09-01T08:35:20.852Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Linux 命令- df">
<meta name="twitter:description" content="&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;linux中df命令的功能是用来检查linux服务器的文件系统的磁盘空间占用情况。可以利用该命令来获取硬盘被占用了多少空间，目前还剩下多少空间等信息。 2.命令功能&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;显示指定磁盘文件的可用空间。如果没有文件名被">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://hcldirgit.github.io/2017/09/03/2. Linux 命令/35. Linux 命令- df/"/>





  <title>Linux 命令- df | 失落的乐章</title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  




<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', '85*****1', 'auto');
  ga('send', 'pageview');
</script>


  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?87980c**************99ec5e26fb5";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>











  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">失落的乐章</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">技术面前，永远都是学生。</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-message">
          <a href="/message" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-external-link"></i> <br />
            
            留言
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="https://hcldirgit.github.io/2017/09/03/2. Linux 命令/35. Linux 命令- df/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="失落的乐章">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/0.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="失落的乐章">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Linux 命令- df</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-09-03T01:57:34+08:00">
                2017-09-03
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;linux中df命令的功能是用来检查linux服务器的文件系统的磁盘空间占用情况。可以利用该命令来获取硬盘被占用了多少空间，目前还剩下多少空间等信息。</p>
<h2 id="2-命令功能"><a href="#2-命令功能" class="headerlink" title="2.命令功能"></a>2.命令功能</h2><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;显示指定磁盘文件的可用空间。如果没有文件名被指定，则所有当前被挂载的文件系统的可用空间将被显示。默认情况下，磁盘空间将以 1KB 为单位进行显示，除非环境变量 POSIXL_CORRECT 被指定，那样将以512字节为单位进行显示。</p>
<h2 id="3-命令参数"><a href="#3-命令参数" class="headerlink" title="3.命令参数"></a>3.命令参数</h2><h3 id="必要参数"><a href="#必要参数" class="headerlink" title="必要参数"></a>必要参数</h3><ul>
<li>-a 全部文件系统列表</li>
<li>-h 方便阅读方式显示</li>
<li>-H 等于“-h”，但是计算式，1K=1000，而不是1K=1024</li>
<li>-i 显示inode信息</li>
<li>-k 区块为1024字节</li>
<li>-l 只显示本地文件系统</li>
<li>-m 区块为1048576字节</li>
<li>–no-sync 忽略 sync 命令</li>
<li>-P 输出格式为POSIX</li>
<li>–sync 在取得磁盘信息前，先执行sync命令</li>
<li>-T 文件系统类型</li>
</ul>
<h3 id="选择参数："><a href="#选择参数：" class="headerlink" title="选择参数："></a>选择参数：</h3><ul>
<li>–block-size=&lt;区块大小&gt; 指定区块大小</li>
<li>-t&lt;文件系统类型&gt; 只显示选定文件系统的磁盘信息</li>
<li>-x&lt;文件系统类型&gt; 不显示选定文件系统的磁盘信息</li>
<li>–help 显示帮助信息</li>
<li>–version 显示版本信息</li>
</ul>
<h2 id="4-使用实例"><a href="#4-使用实例" class="headerlink" title="4.使用实例"></a>4.使用实例</h2><h3 id="实例1：显示磁盘使用情况"><a href="#实例1：显示磁盘使用情况" class="headerlink" title="实例1：显示磁盘使用情况"></a>实例1：显示磁盘使用情况</h3><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>命令</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">df</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>输出</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df</span></div><div class="line">文件系统               1K-块        已用     可用 已用% 挂载点</div><div class="line">/dev/sda7             19840892    890896  17925856   5% /</div><div class="line">/dev/sda9            203727156 112797500  80413912  59% /opt</div><div class="line">/dev/sda8              4956284    570080   4130372  13% /var</div><div class="line">/dev/sda6             19840892   1977568  16839184  11% /usr</div><div class="line">/dev/sda3               988116     23880    913232   3% /boot</div><div class="line">tmpfs                 16473212         0  16473212   0% /dev/shm</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>说明</strong></p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Linux 中 df 命令的输出清单的第1列是代表文件系统对应设备文件的路径名（一般是硬盘上的分区）；第2列给出分区包含的数据块（1024字节）的数目；第3、4列分别表示已用的和可用的数据块数目。用户也许会感到奇怪的是，第3、4列块数之和不等于第2列中的块数。这是因为缺省的每个分区都留了少量空间供系统管理员使用。即使遇到普通用户空间已满的情况，管理员仍能登录和留有解决问题所需的工作空间。清单 use% 列表普通用户空间使用的百分比，即使这一数字达到 100% ，分区仍然留有系统管理员使用的空间。最后，Mounted on 列表示文件系统的挂载点。</p>
<h3 id="实例2：以-inode-模式来显示磁盘使用情况"><a href="#实例2：以-inode-模式来显示磁盘使用情况" class="headerlink" title="实例2：以 inode 模式来显示磁盘使用情况"></a>实例2：以 inode 模式来显示磁盘使用情况</h3><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>命令</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">df -i</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>输出</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -i</span></div><div class="line">文件系统               Inode (I)已用 (I)可用 (I)已用% 挂载点</div><div class="line">/dev/sda7            5124480    5560 5118920    1% /</div><div class="line">/dev/sda9            52592640   50519 52542121    1% /opt</div><div class="line">/dev/sda8            1280000    8799 1271201    1% /var</div><div class="line">/dev/sda6            5124480   80163 5044317    2% /usr</div><div class="line">/dev/sda3             255232      34  255198    1% /boot</div><div class="line">tmpfs                4118303       1 4118302    1% /dev/shm</div></pre></td></tr></table></figure>
<h3 id="实例3：显示指定类型磁盘"><a href="#实例3：显示指定类型磁盘" class="headerlink" title="实例3：显示指定类型磁盘"></a>实例3：显示指定类型磁盘</h3><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>命令</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">df -t ext3</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>输出</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -t ext3</span></div><div class="line">文件系统               1K-块        已用     可用 已用% 挂载点</div><div class="line">/dev/sda7             19840892    890896  17925856   5% /</div><div class="line">/dev/sda9            203727156  93089700 100121712  49% /opt</div><div class="line">/dev/sda8              4956284    570104   4130348  13% /var</div><div class="line">/dev/sda6             19840892   1977568  16839184  11% /usr</div><div class="line">/dev/sda3               988116     23880    913232   3% /boot</div></pre></td></tr></table></figure>
<h3 id="实例4：列出各文件系统的-i-节点使用情况"><a href="#实例4：列出各文件系统的-i-节点使用情况" class="headerlink" title="实例4：列出各文件系统的 i 节点使用情况"></a>实例4：列出各文件系统的 i 节点使用情况</h3><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>命令</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">df -ia</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>输出</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div></pre></td><td class="code"><pre><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -ia</span></div><div class="line">文件系统               Inode (I)已用 (I)可用 (I)已用% 挂载点</div><div class="line">/dev/sda7            5124480    5560 5118920    1% </div><div class="line">/proc                       0       0       0    -  /proc</div><div class="line">sysfs                      0       0       0    -  /sys</div><div class="line">devpts                     0       0       0    -  /dev/pts</div><div class="line">/dev/sda9            52592640   50519 52542121    1% /opt</div><div class="line">/dev/sda8            1280000    8799 1271201    1% /var</div><div class="line">/dev/sda6            5124480   80163 5044317    2% /usr</div><div class="line">/dev/sda3             255232      34  255198    1% /boot</div><div class="line">tmpfs                4118303       1 4118302    1% /dev/shm</div><div class="line">none                       0       0       0    -  /proc/sys/fs/binfmt_misc</div></pre></td></tr></table></figure>
<h3 id="实例5：列出文件系统的类型"><a href="#实例5：列出文件系统的类型" class="headerlink" title="实例5：列出文件系统的类型"></a>实例5：列出文件系统的类型</h3><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>命令</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">df -T</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>输出</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -T</span></div><div class="line">文件系统      类型     1K-块        已用     可用 已用% 挂载点</div><div class="line">/dev/sda7     ext3    19840892    890896  17925856   5% /</div><div class="line">/dev/sda9     ext3   203727156  93175692 100035720  49% /opt</div><div class="line">/dev/sda8     ext3     4956284    570104   4130348  13% /var</div><div class="line">/dev/sda6     ext3    19840892   1977568  16839184  11% /usr</div><div class="line">/dev/sda3     ext3      988116     23880    913232   3% /boot</div><div class="line">tmpfs        tmpfs    16473212         0  16473212   0% /dev/shm</div></pre></td></tr></table></figure>
<h3 id="实例6：以更易读的方式显示目前磁盘空间和使用情况"><a href="#实例6：以更易读的方式显示目前磁盘空间和使用情况" class="headerlink" title="实例6：以更易读的方式显示目前磁盘空间和使用情况"></a>实例6：以更易读的方式显示目前磁盘空间和使用情况</h3><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>命令</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">df -h</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>输出</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div><div class="line">24</div><div class="line">25</div><div class="line">26</div><div class="line">27</div><div class="line">28</div><div class="line">29</div><div class="line">30</div><div class="line">31</div><div class="line">32</div></pre></td><td class="code"><pre><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -h</span></div><div class="line">文件系统              容量  已用 可用 已用% 挂载点</div><div class="line">/dev/sda7              19G  871M   18G   5% /</div><div class="line">/dev/sda9             195G   89G   96G  49% /opt</div><div class="line">/dev/sda8             4.8G  557M  4.0G  13% /var</div><div class="line">/dev/sda6              19G  1.9G   17G  11% /usr</div><div class="line">/dev/sda3             965M   24M  892M   3% /boot</div><div class="line">tmpfs                  16G     0   16G   0% /dev/shm</div><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -H</span></div><div class="line">文件系统               容量   已用  可用 已用% 挂载点</div><div class="line">/dev/sda7               21G   913M    19G   5% /</div><div class="line">/dev/sda9              209G    96G   103G  49% /opt</div><div class="line">/dev/sda8              5.1G   584M   4.3G  13% /var</div><div class="line">/dev/sda6               21G   2.1G    18G  11% /usr</div><div class="line">/dev/sda3              1.1G    25M   936M   3% /boot</div><div class="line">tmpfs                   17G      0    17G   0% /dev/shm</div><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -lh</span></div><div class="line">文件系统              容量  已用 可用 已用% 挂载点</div><div class="line">/dev/sda7              19G  871M   18G   5% /</div><div class="line">/dev/sda9             195G   89G   96G  49% /opt</div><div class="line">/dev/sda8             4.8G  557M  4.0G  13% /var</div><div class="line">/dev/sda6              19G  1.9G   17G  11% /usr</div><div class="line">/dev/sda3             965M   24M  892M   3% /boot</div><div class="line">tmpfs                  16G     0   16G   0% /dev/shm</div><div class="line">[root@CT1190 <span class="built_in">log</span>]<span class="comment"># df -k</span></div><div class="line">文件系统               1K-块        已用     可用 已用% 挂载点</div><div class="line">/dev/sda7             19840892    890896  17925856   5% /</div><div class="line">/dev/sda9            203727156  93292572  99918840  49% /opt</div><div class="line">/dev/sda8              4956284    570188   4130264  13% /var</div><div class="line">/dev/sda6             19840892   1977568  16839184  11% /usr</div><div class="line">/dev/sda3               988116     23880    913232   3% /boot</div><div class="line">tmpfs                 16473212         0  16473212   0% /dev/shm</div></pre></td></tr></table></figure>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<strong>说明</strong> </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-h更具目前磁盘空间和使用情况 以更易读的方式显示</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-H根上面的-h参数相同,不过在根式化的时候,采用1000而不是1024进行容量转换</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-k以单位显示磁盘的使用情况</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-l显示本地的分区的磁盘空间使用率,如果服务器nfs了远程服务器的磁盘,那么在df上加上-l后系统显示的是过滤nsf驱动器后的结果</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-i显示inode的使用情况。linux采用了类似指针的方式管理磁盘空间影射.这也是一个比较关键应用</p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/Linux命令/" rel="tag"># Linux命令</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/09/03/2. Linux 命令/37. Linux 命令- ln/" rel="next" title="Linux 命令- ln">
                <i class="fa fa-chevron-left"></i> Linux 命令- ln
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/09/03/2. Linux 命令/29. Linux 命令- chgrp/" rel="prev" title="Linux 命令- chgrp">
                Linux 命令- chgrp <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/0.png"
               alt="失落的乐章" />
          <p class="site-author-name" itemprop="name">失落的乐章</p>
           
              <p class="site-description motion-element" itemprop="description">失落的乐章的Blog</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/">
                <span class="site-state-item-count">627</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">38</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/hcldirgit" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#2-命令功能"><span class="nav-number">1.</span> <span class="nav-text">2.命令功能</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-命令参数"><span class="nav-number">2.</span> <span class="nav-text">3.命令参数</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#必要参数"><span class="nav-number">2.1.</span> <span class="nav-text">必要参数</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#选择参数："><span class="nav-number">2.2.</span> <span class="nav-text">选择参数：</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-使用实例"><span class="nav-number">3.</span> <span class="nav-text">4.使用实例</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#实例1：显示磁盘使用情况"><span class="nav-number">3.1.</span> <span class="nav-text">实例1：显示磁盘使用情况</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实例2：以-inode-模式来显示磁盘使用情况"><span class="nav-number">3.2.</span> <span class="nav-text">实例2：以 inode 模式来显示磁盘使用情况</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实例3：显示指定类型磁盘"><span class="nav-number">3.3.</span> <span class="nav-text">实例3：显示指定类型磁盘</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实例4：列出各文件系统的-i-节点使用情况"><span class="nav-number">3.4.</span> <span class="nav-text">实例4：列出各文件系统的 i 节点使用情况</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实例5：列出文件系统的类型"><span class="nav-number">3.5.</span> <span class="nav-text">实例5：列出文件系统的类型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#实例6：以更易读的方式显示目前磁盘空间和使用情况"><span class="nav-number">3.6.</span> <span class="nav-text">实例6：以更易读的方式显示目前磁盘空间和使用情况</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">失落的乐章</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>


        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>



  


  




	





  





  





  






  





  

  

  

  

  

  

</body>
</html>
